Page.TextRectMeasure Method (console safe)
Measures height needed to draw given text with given width in a TextRect area. The function also returns number of lines which the text will be split into.

TextRectMeasure(
text
as String,
width
as Single,
ByRef outLineCount
as Integer)
as Single
Parameters
- text
- The text to be measured.
- width
- Width of the TextRect area.
- outLineCount (ByRef parameter)
- ByRef parameter that will return the number of lines.
Returns
- Single
- The height needed for the TextRect to fit all the text.
Remarks
See Also
Page Class